home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-08-27 | 5.1 KB | 138 lines | [TEXT/pdos] |
-
- DSK2FILE, version 2.1
-
- Ronald T. Kneusel, August 1995. FREEWARE
- (rkneusel@post.its.mcw.edu)
-
-
- What is it?
- -----------
- DSK2FILE creates disk images of 5.25" disks (DOS 3.3 or ProDOS) for use with
- Apple ][ emulator programs.
-
- DSK2FILE will create images in DOS 3.3 order (.DSK) or in ProDOS order (.PO)
- It does not matter what format the disk really is, you can use either order.
- Most emulators will handle DOS 3.3 order, some will also handle ProDOS order.
-
-
- What do I need to run it?
- -------------------------
-
- You need a 5.25" drive and one of the following:
-
- (1) a 3.5" drive
- (2) a hard drive
- (3) a RAM card with 150K or more
-
- DSK2FILE will create the file, it is up to you to get the file to the PC or
- Mac. See below for suggestions on how to do this.
-
-
- Running DSK2FILE
- ----------------
-
- DSK2FILE's menu has two choices:
-
- (1) 140K DISK -> IMAGE FILE
- (2) IMAGE FILE -> 140K DISK
-
- You will likely use (1) the most often. The second option is for those who
- might come across an image file and want to put that file back onto a disk
- and run it on a real Apple ][.
-
- (1) 140K -> IMAGE FILE
-
- DSK2FILE reads only 5.25" disks from slot 6, drive 1. The program will ask
- for an image order, either DOS 3.3 or ProDOS and then ask for an output
- filename. The appropriate extension is added to the filename. Specify the
- *complete* pathname of the file, i.e. /RAM5/KARATEKA not just KARATEKA.
-
- Insert the disk when asked and press return. The image file will be created.
-
-
- (2) IMAGE FILE -> 140K DISK
-
- Insert a *formatted* 5.25" disk in slot 6, drive 1 and specify the *complete*
- pathname of the image file as above. The extension is important. DSK2FILE
- uses it to determine what order the image file was written in. If the image
- didn't have an extension change its name to have .DSK as the extension. If
- it doesn't work, change it to .PO and try again.
-
-
- What's with the DOS and ProDOS orders?
- --------------------------------------
-
- The Apple ][ has two different disk operating systems: DOS 3.3 and ProDOS.
- (Yes, there are several others, I'm simplifying a bit, I know :)
-
- DOS 3.3 is the older and slower of the two and deals in 256 byte sectors with
- 16 sectors per track and 35 tracks per 5.25" disk. ProDOS is faster and deals
- with 512 byte blocks, 280 per 5.25" disk. Therefore, each ProDOS block
- corresponds to two sectors. However, these are not necessarily contiguous
- sectors. ProDOS uses a different physical spacing of what DOS 3.3 would call
- sectors so that reading all the blocks from 0 to 279 in order writes the data
- on the disk to the file in one order while using track 0 to 34 and sector 0
- to 15 for each track will write the data in a different order. Either way,
- all the data will be written, 143360 bytes total.
-
-
- How does it work?
- -----------------
-
- Glad you asked! :)
-
- DSK2FILE must run under ProDOS because it uses ProDOS MLI commands to handle
- the disk files. This relieves the user from caring about the file type of
- the image file. It also makes it much easier than using old DOS 3.3 RWTS
- calls.
-
- The disk is read, block by block, and written to the output file in 512 byte
- sections. If the output is to be in DOS 3.3 order a map is applied to the
- block number to translate it into a track and sector with the appropriate
- 256 byte section of the block being written. This is the easy part.
-
- Writing an image to a disk is just as easy if the image is in ProDOS order.
- Read 512 bytes from the file and write it to block 0 and so on. If it is a
- DOS 3.3 order image file life gets a bit tricky since we can only read and
- write 512 byte blocks but we are working with half a block at a time. The
- solution is to read the existing block, then read the 256 bytes from the image
- file and put it in the right half of the block buffer. Then write the entire
- block back to disk. This is why going from a DOS 3.3 image file to a disk
- takes longer.
-
-
- What do I do with the image file?
- ---------------------------------
-
- The end goal, of course, is to get the file to a PC or Macintosh (or Unix box)
-
- I use a terminal program to upload the image file (written to my RAM card) to
- a Unix box and then download it to the Mac or PC. (Really, I FTP it since I
- have Internet access) Another option is to use a null modem cable and go
- directly to a PC or Mac with the image file. Lastly, you could write the file
- to a 3.5" ProDOS disk and use a Mac to read the file with Apple File Exchange.
- Then you could write the file to a PC disk if need be.
-
-
- It doesn't work, now what?
- --------------------------
-
- Contact me at the email address above. If you start seeing two digit hex
- numbers please write them down to help me in the debuging. These are ProDOS
- MLI error codes. DSK2FILE will not read copy protected disks. Disks with
- bad blocks or sectors will still be written to an image file with nonsense
- in the bad block or sector. (Actually, it will be the data that was in the last block or sector successfully read)
-
-
- I'm in the dark ages and don't have email, how to I contact you?
- ----------------------------------------------------------------
-
- If you feel a compelling need you can try snail mail:
-
- Ron Kneusel
- 8725 W Burdick Ave
- Milwaukee, WI 53227 USA
-
- AMDG
-
-